package com.lulin.mall.product.fegin;

import com.lulin.common.dto.SkuHasStockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程调用ware库存服务接口
 *
 * @author lulin
 * @date 2022/11/11 17:12
 */
@FeignClient(name = "mall-ware")
public interface WareSkuFeginService {

    @PostMapping("/ware/waresku/hasStock")
    public List<SkuHasStockDTO> getSkusHasStock(@RequestBody List<Long> skuIds);
}
